/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rhythm.commons.net.ftp;

import org.apache.commons.net.ftp.FTP;

/**
 *
 * @author Michael J. Lee
 */
public enum FileTransferMode {

    /**
     * ASCCII file transfer mode.
     */
    ASCII(FTP.ASCII_FILE_TYPE),

    /**
     * Binary file transfer mode.
     */
    BINARY(FTP.BINARY_FILE_TYPE);

    private final int value;

    private FileTransferMode(int value){
        this.value = value;
    }

    /**
     * Returns the <code>int</code> value of the mode
     * @return a number indicating the mode.
     * @see FTP
     */
    public int toInt(){
        return value;
    }


}
